import React from 'react';
import {messages} from "share/common";
import { Row, Col } from 'antd'
import ShowInfo from '../show-info'
import moment from 'moment';

const BaseInfo = ({data}) => {
  const hrLine = {
    border:'0.5px solid #e8e8e8',
    marginBottom:14,
  }
  data = data ? data : {};
  return (
    <div>
      <h3 style={{marginLeft:24}}>{messages('supplier.key323')/*订单基本信息*/}</h3>
      <hr style={{border:'0.5px solid #e8e8e8'}}/>
      <div style={{padding:'12px 24px'}}>
        <h4>{messages('approve.key16'/*基本信息*/)}</h4>
        <Row>
          <ShowInfo label={messages('order-management.key17')/*订单状态*/} value={data.orderStatus} />
          <ShowInfo label={messages('supplier.key324')/*因公/因私*/} value={data.corpPayType} />
          <ShowInfo label={messages('supplier.key325')/*航程类型*/} value={data.flightWay} />
          <ShowInfo label={messages('supplier.key326')/*改签原订单号*/} value={data.rebookOrderId} />
          <ShowInfo label={messages('supplier.key327')/*关联申请单号*/} value={data.journeyId} />
          <ShowInfo label={messages('supplier.key328')/*行程类型*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key329')/*国内/国际*/} value={data.flightClass} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key330')/*价格信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key331')/*订单总价*/} value={data.amount} />
          <ShowInfo label={messages('supplier.key332')/*改签费(总)*/} value={data.changeAmount} />
          <ShowInfo label={messages('supplier.key333')/*退票费(总)*/} value={data.refundAmount} />
          <ShowInfo label={messages('supplier.key334')/*配送费(总)*/} value={data.sendTicketFee} />
          <ShowInfo label={messages('supplier.key335')/*保险费(总)*/} value={data.insuranceFee} />
          <ShowInfo label={messages('supplier.key336')/*预订服务费(总)*/} value={data.totalServiceFee} />
          <ShowInfo label={messages('common.currency')/*币种*/} value={data.currency} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key337')/*时间信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key338')/*创建时间*/} value={moment(data.createTime).format('YYYY-MM-DD')} />
          <ShowInfo label={messages('supplier.key339')/*成交时间*/} value={data.finishDate} />
          <ShowInfo label={messages('supplier.key340')/*出票时间*/} value={data.PrintTicketTime} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key341')/*其他信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key342')/*成本中心1*/} value={data.costCenter} />
          <ShowInfo label={messages('supplier.key343')/*成本中心2*/} value={data.costCenter2} />
          <ShowInfo label={messages('supplier.key344')/*成本中心3*/} value={data.costCenter3} />
          <ShowInfo label={messages('supplier.key345')/*自定义字段1*/} value={data.defineFlag} />
          <ShowInfo label={messages('supplier.key346')/*自定义字段2*/} value={data.defineFlag2} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key347')/*支付信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key75')/*支付方式*/} value={data.prepayType} />
          <ShowInfo label={messages('supplier.key348')/*开票类型*/} value={data.nBillingType} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key349')/*备注信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key350')/*订单备注*/} value={data.remarks} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key351')/*授权/审批信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key352')/*审批状态*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key353')/*二次审批单号*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key354')/*一次授权方式*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key355')/*二次授权方式*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key356')/*授权人*/} value={data.confirmPerson} />
          <ShowInfo label={messages('supplier.key357')/*第二授权人*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key358')/*抄送授权人*/} value={data.confirmPersonCC} />
          <ShowInfo label={messages('supplier.key359')/*第二抄送授权人*/} value={data.confirmPersonCC2} />
        </Row>
      </div>
      <hr style={{border:'0.5px solid #e8e8e8'}}/>
      <h3 style={{marginLeft:24}}>{messages('supplier.key360')/*联系信息*/}</h3>
      <hr style={{border:'0.5px solid #e8e8e8'}}/>
      <div style={{padding:'12px 24px'}}>
        <h4>{messages('supplier.key361')/*配送信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key362')/*配送方式*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key363')/*订单配送地址*/} value={data.dd} />
        </Row>
        <hr style={hrLine}/>
        <h4>{messages('supplier.key364')/*联系人信息*/}</h4>
        <Row>
          <ShowInfo label={messages('supplier.key365')/*联系人姓名*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key366')/*联系人电话*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key367')/*联系人手机*/} value={data.dd} />
          <ShowInfo label={messages('supplier.key368')/*联系人邮箱*/} value={data.dd} />
        </Row>
      </div>
    </div>
  )
}

export default BaseInfo;
